﻿//-----------------------------------------------------------------------
// <copyright file="Copyright.cs" author="Michael Herndon">
//     Copyright (c) Company.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Amplify.CodeDom
{
	using System;
	using System.CodeDom;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;

	public class Declare
	{
	

		public static CodeMethodReturnStatement Return(CodeExpression expression)
		{
			return new CodeMethodReturnStatement(expression);
		}

		public static CodeVariableDeclarationStatement NewVar(string type, string name)
		{
			return new CodeVariableDeclarationStatement(type, name);
		}

		public static CodeVariableDeclarationStatement NewVar(Type type, string name)
		{
			return new CodeVariableDeclarationStatement(type, name);
		}

		public static CodeVariableDeclarationStatement NewVar(CodeTypeReference type, string name)
		{
			return new CodeVariableDeclarationStatement(type, name);
		}

		public static CodeVariableDeclarationStatement NewVar(string type, string name, CodeExpression initExpression)
		{
			return new CodeVariableDeclarationStatement(type, name, initExpression);
		}

		public static CodeVariableDeclarationStatement NewVar(Type type, string name, CodeExpression initExpression)
		{
			return new CodeVariableDeclarationStatement(type, name, initExpression);
		}

		public static CodeVariableDeclarationStatement NewVar(CodeTypeReference type, string name, CodeExpression initExpression)
		{
			return new CodeVariableDeclarationStatement(type, name, initExpression);
		}
	}
}
